# Maintainer: Jelle van der Waa <jelle@vdwaa.nl>
# Contributor: Platon Pronko <platon7pronko@gmail.com>

pkgname=python-lsp-jsonrpc
pkgver=1.0.0
pkgrel=4
pkgdesc="Fork of the python-jsonrpc-server project, maintained by the Spyder IDE team and the community"
arch=("any")
url="https://github.com/python-lsp/python-lsp-jsonrpc"
license=(MIT)
depends=(python-ujson)
makedepends=(python-setuptools)
source=($pkgname-$pkgver.targz::https://github.com/python-lsp/python-lsp-jsonrpc/archive/v${pkgver}.tar.gz)
sha256sums=('058f21fa9e5c49fbb978c3f92c4b0ed84f3a859dc6568632cb69ddec2bcb38c0')

build() {
  cd "${srcdir}/python-lsp-jsonrpc-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/python-lsp-jsonrpc-${pkgver}"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
